#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QLineEdit>
QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
protected:
    virtual void keyPressEvent(QKeyEvent *event) override;
    virtual bool eventFilter(QObject *watched, QEvent *event)override;
    virtual bool event(QEvent *e)override;
private:
    Ui::Widget *ui;
    QLineEdit * line_edit_ = nullptr;
};
#endif // WIDGET_H
